package exercises.Charpter7;

import static net.mindview.util.Print.*;

class NewComponent1{
	NewComponent1(int i){
		print("NewComponent1 constructed!");
	}
}

class NewComponent2{
	NewComponent2(int i){
		print("NewComponent2 constructed!");
	}
}

class NewComponent3{
	NewComponent3(int i){
		print("NewComponent3 constructed!");
	}
}

class Newroot{
	NewComponent1 a;
	NewComponent2 b;
	NewComponent3 c;
	Newroot(int i){
		a = new NewComponent1(i);
		b = new NewComponent2(i);
		c = new NewComponent3(i);
		print("Newroot constructed!");
	}
}

class NewStem extends Newroot{
	NewStem(int i){
		super(i);
		print("NewStem constructed!");
	}
}

public class Ten {
	@SuppressWarnings("unused")
	public static void main(String[] args){
		NewStem test = new NewStem(0);
	}
}
